* {
    /*    所有元素盒子模型*/
    /*    添加border和padding不影响尺寸*/
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f5f5f5;
    color: #ffffff;
    font-family: "黑体", Arial, helvetica;
    font-size: 12px;

}

/*测试代码*/
div {
    margin: 0;
    border: 0 solid grey;
}

.container {
    width: 1000px;
    /*解决边框重叠*/
    margin: 0 auto;
}

.f1 {
    padding-top: 25px;
    color: #585757;
}

.loge {
    vertical-align: bottom;
}

.h1 {
    font-size: 1.8em;
    padding-left: .8em;
}

.f2 {
    height: 500px;
    background-image: url("/img/1.jpg");
    /*    背景图片竖直方向拉伸*/
    background-size: auto 100%;
    background-position: center center;
}

.f2 > .container {
    /*边框盒子加边距不会影响总宽度*/
    padding: 40px 5px 4px 0;
}

.relative-box {
    /*宽度要手工指定*/
    width: 500px;
    /*  高度要靠内容撑起来  */
    height: auto;
    /*向右对齐简便用法*/
    margin-left: auto;
    background-color: rgba(0, 0, 0, .4);
    border-radius: 2px;
}

.relative-box > div[class^="row"] {
    padding: 20px;
}

.relative-box > div[class^="row"] > .label {
    display: inline-block;
    width: 6.5em;
}

.relative-box > div[class^="row"] input {
    border-radius: 2px;
    border: none;
    outline: none;
}

.relative-box > div[class^="row"] > .danger {
    background-color: red;
}

.row1 > div[class^="col"] {
    display: inline-block;
    width: 50%;
    padding: 16px 15px;
    font-size: .9em;
}

.row1 > .col1 {
    text-align: left;
}

.row1 > .col2 {
    text-align: right;
}

.f3 .col {
    float: left;
    width: 25%;
    color: #6591c7;
    text-align: center;
    margin-top: 20px;
}

/*.f3 > .container>div:last-child {
    clear: both;
}*/
.f3 > .container:after {
    content: "";
    display: block;
    clear: both;
}

.f3 img {
    display: block;
    margin: auto;
}

.f4 > .container {
    text-align: center;
    color: black;
    line-height: 10em;
}